package org.xiyu.yee.datl.forge.client;

import net.minecraft.client.Minecraft;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.world.entity.player.Player;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.RenderPlayerEvent;
import net.minecraftforge.eventbus.api.listener.SubscribeEvent;
import org.xiyu.yee.datl.Datl;
import org.xiyu.yee.datl.client.PlayerRenderHandler;

public class ForgeRenderEvents {
    
    @SubscribeEvent
    public static void onRenderPlayerPre(RenderPlayerEvent.Pre event) {
        Minecraft mc = Minecraft.getInstance();
        LocalPlayer player = mc.player;

            PlayerRenderHandler.onRenderPlayer(player, event.getPoseStack());
    }
}
